package com.xnck.maventest.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xnck.maventest.dao.UserDaoImpl;
import com.xnck.maventest.entity.User;

@Service
public class UserService {

	@Autowired
	private UserDaoImpl userDao;
	
	public User getUserById(String userId){
		return userDao.getUserById(userId);
	}
	
	public void addUser(User user){
		userDao.insertUser(user);
	}
}
